package br.com.pmz.gerador.conexao.mysql;

import br.com.pmz.gerador.conexao.ConnectionImpl;
import br.com.pmz.gerador.vo.ConnectionVO;

/**
 * @author tcs001
 * 
 */
public final class ConnectionMysqlImpl extends ConnectionImpl {

    /**
     * {@inheritDoc}
     */
    @Override
    public String getDriver() {
	return "com.mysql.jdbc.Driver";
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getJDBC() {
	StringBuilder sb = new StringBuilder("jdbc:mysql://");
	sb.append(getConnect().getHost());
	sb.append("/");
	sb.append(getConnect().getSsid());
	return sb.toString();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public void setConnection(final ConnectionVO connect) {
	super.setConnect(connect);
    }
}
